<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入css样式 -->
    <link rel="stylesheet" href="./index.css">
</head>

<body>
    <div id="frame">
        <!-- 头部导航栏 -->
        <nav>
            <div id="logo">
                <img src="images/player_title.png" alt="">
            </div>
            <input type="text" name="" id="search" v-model="userInput" @keyup.enter="searchInput">
            <a href="#" id="send" @click="searchInput"><img src="./images/zoom.png" alt=""></a>
        </nav>
        <!-- 主体区域 -->
        <div id="content">
            <!-- 左侧区域歌曲列表 -->
            <div id="leftsidebar">
                <ul id="song_list">
                    <li v-for="item in songList">
                        <div id="music" @click="listen(item.id)">
                            <img src="./images/play.png" alt="">
                        </div>
                        <p>{{ item.name }}</p>
                        <div id="vedio" v-if="item.mvid!=0" @click="getMv(item.mvid)"></div>
                    </li>
                </ul>
                <img src="./images/line.png" alt="">

            </div>
            <!-- 中间音乐播放 -->
            <div class="play">
                <!-- 播放杠 -->
                <img src="./images/player_bar.png" alt="" class="play_icon" :class='{Star_move:playing}'>
                <!-- 播放盘 -->
                <img src="./images/disc.png" alt="" id="tray_icon" class="autoRotate" :class='{stratMove:playing}'>
                <img :src="pic" class="pic autoRotate" :class='{stratMove:playing}'>
            </div>
            <!-- 右侧留言 -->
            <div id="rightsidebar">
                <h4>热门留言</h4>
                <div id="leave">
                    <dl v-for="item in comment">
                        <dt><img :src="item.user.avatarUrl" alt="" id="header"></dt>
                        <dd id="name">{{item.user.nickname}}</dd>
                        <dd id="feel">
                            {{item.content}}
                        </dd>
                    </dl>
                </div>
                <img src="./images/line.png" alt="" id="line-right">
            </div>
        </div>
        <!-- 尾部播放按钮及其其他按钮 -->
        <footer>
            <audio :src="songUrl" @play="play" @pause="pause" controls="controls" autoplay="autoplay"
                loop="loop"></audio>
        </footer>
        <!-- 遮罩层 -->
        <div class="video_cover" v-show="showing" style="display: none;">
            <video :src="mvUrl" controls="controls" id="video"></video>
            <div id="mask" @click="hiddMask"></div>
        </div>
    </div>
    <!-- 引入vue文件 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <!-- 引入axios文件 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/1.3.4/axios.min.js"></script>
    <!-- 引入自定义js文件 -->
    <script src="./index.js"></script>
</body>

</html>